-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for personal access token mechanism #4598
Support for personal access token mechanism #4598
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4598 +/- ##
============================================
- Coverage 61.11% 61.01% -0.11%
- Complexity 2570 2611 +41
============================================
Files 374 378 +4
Lines 13171 13550 +379
Branches 938 958 +20
============================================
+ Hits 8049 8267 +218
- Misses 4669 4817 +148
- Partials 453 466 +13
|
/milestone 2.10.x |
/hold TODO:
|
287b21d
to
d4a8080
Compare
9c568dd
to
1e1285e
Compare
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#### What type of PR is this? /kind improvement /kind api-change /area core #### What this PR does / why we need it: This PR refines route paths created from <#4598>. Because the user scope is not necessary here. #### Special notes for your reviewer: Try to manage your PATs. #### Does this PR introduce a user-facing change? ```release-note None ```
#### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: After PAT mechanism implemented by <#4598>, if we use the same PAT to request endpoints concurrently, we may encounter an error like the screenshot below: <img width="1920" alt="image" src="https://github.com/halo-dev/halo/assets/16865714/30899a0c-ad98-44a1-ae7d-0eda603945f0"> This PR fixes the problem introduced by <#4598>. We update the lastUsed timestamp of PAT at least one minute apart and with retry. #### Does this PR introduce a user-facing change? ```release-note None ```
What type of PR is this?
/kind feature
/kind api-change
/area core
What this PR does / why we need it:
Support for personal access token mechanism.
Which issue(s) this PR fixes:
Fixes #1309
Special notes for your reviewer:
Does this PR introduce a user-facing change?